package com.study.messagFormat;

import java.time.LocalDate;
import java.time.format.DateTimeFormatter;

/**
 * @author HBZ
 * @description
 * @date 2021/8/3 10:09
 */
public class Test2 {
   static DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyyMMdd");
    public static void main(String[] args) {
//        Map valuesMap = new HashMap();
//        valuesMap.put("animal", "quick brown fox");
////        valuesMap.put("target", "lazy dog");
//        valuesMap.put("a", "aa");
//        String templateString = "The ￥'$'${animal} jumped over the ${target}. ${undefined.number:-1234567890}.";
//        StringSubstitutor sub = new StringSubstitutor(valuesMap);
//        String resolvedString = sub.replace(templateString);
//        System.out.println(resolvedString);

        String format = formatter.format(LocalDate.now());
        System.out.println(format);
    }
    
}
